package zhongbo.java.air.airingestion.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.data.redis.connection.Message;
import org.springframework.data.redis.connection.MessageListener;
import org.springframework.stereotype.Component;


@Component
@Slf4j
public class PersonalFlightPathSubscriber implements MessageListener {


    @Override
    public void onMessage(Message message, byte[] pattern) {
       String msg =new String(message.getBody());
       log.info("收到订阅广播发送消息",msg);
        System.out.println("收到日志"+msg);
    }
}
